import './App.css';
import { BrowserRouter, Route, Routes, Navigate, useNavigate } from 'react-router-dom'
import { routes } from './route';
function App() {
  return (
    <div className="App">
      <Routes>
        {routes.map((o, i) => (
          <Route key={'route' + i} exact path={o.path} Component={o.component}></Route>
        ))}
      </Routes>
    </div>
  );
}

export default App;
